<template>
  <div>
    <slot :username="username" :year="year">我是子组件的默认内容</slot>
  </div>
</template>

<script>
export default {
  data() {
    return {
      username: "法外狂徒 张三",
      year: "2023",
    };
  },
};
</script>

<style></style>
